﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FieldBox.aspx.cs" Inherits="WebPoligon.FieldBoxPage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <script type="text/javascript" src="/resources/scripts/extuis/uis/TermNode.js"></script>
    <script type="text/javascript" src="resources/scripts/extuis/data/Store.js"></script>
    <script type="text/javascript" src="resources/scripts/extuis/grid/Panel.js"></script>
    <script type="text/javascript" src="resources/scripts/extuis/form/field/Base.js"></script>

    <ext:ResourceManager ID="ResourceManager1" Locale="ru-RU" runat="server" ScriptMode="Debug" SourceFormatting="true" />

    <uis:RootEntityBox Name="User" runat="server" Flex="1">
        <proxy>
            <ext:PageProxy>
                <API Read="App.direct.GetUsers"  />
            </ext:PageProxy>
        </proxy>
        <Items>
            <ext:TabPanel runat="server" Width="1100" Height="900">
                <ext:Container ID="Panel1" runat="server" Title="Form" Layout="HBoxLayout">
                    <ext:Container runat="server" Flex="1" StyleSpec="background: url(/resources/images/FieldBox2.png) no-repeat;" Height="940" Width="400" Margin="20" />
                            
                    <ext:FormPanel runat="server" Height="800" Width="400" Title="ASP.NET Field Boxes" Margin="20" Frame="true">
                        <ext:FieldSet runat="server" Title="Details" Collapsible="true">
                            <uis:FieldBox Name="{Composite Name} FirstName + LastName; Email; UserName; Password" runat="server" />
                        </ext:FieldSet>
                        <ext:FieldSet runat="server" Title="Details" Collapsible="true">
                            <uis:FieldBox Name="FullName; Password; IsAdmin; LoginAllowed; P" runat="server" />
                        </ext:FieldSet>
                        <uis:FieldBox Name="FieldSet1" runat="server" />
                        <uis:FieldBox Name="FieldSet1" runat="server" EditorName="null" />
                        <uis:FieldBox Name="FieldSet1" runat="server" EditorName="fieldset2" />
                        <uis:FieldBox Name="P\P1 + '.' + P\P2 + '.' + P\P3 + '.' + P\P4" runat="server" Title="PPPP" />
                        <uis:FieldBox Name="P" runat="server" />
                        <uis:EntityBox Name="P" runat="server">
                            <uis:FieldBox Name="P1 + '.' + P2 + '.' + P3 + '.' + P4" runat="server" />
                        </uis:EntityBox>
                        <uis:EntityBox Name="User\P" runat="server">
                            <uis:FieldBox Name="P1 + '.' + P2 + '.' + P3 + '.' + P4" runat="server" />
                        </uis:EntityBox>
                        <uis:FieldBox Name="FullName + '&nbsp;email:&nbsp;' + Email" runat="server" />
                        <uis:FieldBox Name="'this' + P\P1 + ', this' + P\P2 + ', but can\'t this' + P\P3" runat="server" Title="P-P-P" />
                    </ext:FormPanel>
                </ext:Container>
                <%--<ext:Container ID="Panel2" runat="server" Title="Grid" Layout="VBoxLayout">
                    <uis:FieldBox Name="FullName; {ФИО} LastName, FirstName; FieldSet1; P" runat="server" Kind="Grid" Flex="1" />
                    <uis:FieldBox Name="FullName" runat="server" Kind="Grid" Flex="1" />
                    <uis:Grid Name="FullName; {ФИО} LastName, FirstName; FieldSet1; P" runat="server" Flex="1" />
                </ext:Container>--%>
            </ext:TabPanel>
        </Items>
    </uis:RootEntityBox>

</body>
</html>
